package com.sitech.webapp.util;

import com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor;
import com.opensymphony.xwork2.util.logging.Logger;
import com.opensymphony.xwork2.util.logging.LoggerFactory;

public class StrutsExceptionInterceptor extends ExceptionMappingInterceptor
{
	private static final long serialVersionUID = -7377205750777381999L;
	protected static final Logger LOG = LoggerFactory.getLogger(StrutsExceptionInterceptor.class);
    
    protected void handleLogging(Exception exception) 
    {
    	LOG.error("basd exception", exception);
    }
    
    public boolean isLogEnabled() {
        return true;
    }
    	
}
